<include file="common/fileinput"/>
<include file="common/ueditor"/>
<include file="template:style"/>
<div class="col-xs-12">
	<div class="row">
		<form class="form-horizontal" role="form" id="form" action="{:U('Customize/edit')}">
			<div class="form-group">
				<input type="hidden" name="id" value="{$data.id}">
				<include file="template:input" name="name" label="名称" value="{$data.name}"  attr='data-rule="required;length(~50)" maxlength="50"'/>
				<include file="template:number" name="price" label="价格" value="{$data.price}"  attr='data-rule="required;length(~50)" maxlength="50"'/>
				<include file="template:textarea" name="introduce" label="简介" value="{$data.introduce}"  attr='data-rule="required;length(~200)" maxlength="200"'/>
				<include file="template:singleImage" results="data" name="img" label="封面图"/>
				<include file="template:multiImage" results="data" name="imgs" label="商品图集"/>
				<include file="template:ueditor" results="data" name="html" label="详情页" attr='data-rule="required;length(~20000)" maxlength="20000"'/>
			</div>
			<div class="form-group" style="margin-top: 20px;">
				<include file="template:button" label="保存"/>
			</div>
		</form>
	</div>
</div>